package StudyCode.summary.Basic.stringbuffer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringBufferSub {
	public static void main(String[] args) {
		StringBuffer sb = new StringBuffer("Hello World By Java");
		System.out.println("原本内容:" + sb);

		String strPart1 = sb.substring(5);
		System.out.println("截取后:" + strPart1);

		String strPart2 = sb.substring(0, 17);
		System.out.println("截取后:" + strPart2);

	}
}
